/*!  \file  CompileTime.h
 *	  \brief  class that holds the compile time of it self
 * 
 *   \details   details
 *   \author    Yordan Madzhunkov German Research School for Simulation Sciences GmbH
 *   \version   1.0
 *   \date      07/07/2013 09:20:09 AM
 *   \copyright GNU Public License.
 */
#pragma once
#include <ctime>
class CompileTime {
public:
	CompileTime();
	virtual ~CompileTime(){};
	time_t       getCompileTime() const { return compileTime; };
	time_t getDateAndTime(const char * s) const; // extracts the date and time 
	void printDateAndTime(char * s, time_t t) const; 
	bool parse(const char * date, const char * time, int & year, 
		int & month, int & day, int & hour, int & minutes, int & seconds) const;
protected:
	void setCompileTime(const char * date, const char * time);
	void setCompileTime(time_t newTime);
private:
	time_t compileTime;
};
